package com.example.demo.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

@Data
@ApiModel("人物信息")
@TableName("person")
public class Person {

    @ColumnWidth(15)
    @ExcelProperty("姓名")
    private String name;

    @ColumnWidth(15)
    @ExcelProperty("性别")
    private String sex;

    @ColumnWidth(15)
    @ExcelProperty("年龄")
    private Integer age;

    //老子腿长占两行
//    @ContentLoopMerge(eachRow = 2)
    @ColumnWidth(15)
    @ExcelProperty("身份证")
    private String cardid;
}